package design_pattern.lx3_single_pattern.lx_登记式;

/**
 * @Author Mr.wang
 * @Description
 * @Date 2020-04-15
 */
public class Singleton {
    private static class SingletonHolder {
        private static final Singleton INSTANCE = new Singleton();
    }

    private Singleton() {
    }

    public static final Singleton getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
